<?php
/**
 * TinyMVC - autoload.function.php file
 * 
 * @author Adrian Wieczorek <adi(at)tinymvc(dot)org>
 * @package TinyMVC
 * @version $Id: autoload.function.php 3 2007-09-11 12:08:07Z adi3ek $
 * 
 */

/**
 * @param string $className
 */
function __autoload($className) {
	if($className == 'TinyMVC') {
		// TinyMVC class is called before include_path setting, so we do the trick here
		require_once(realpath(dirname(__FILE__)) . '/TinyMVC.class.php');
	}
	else {
		require_once($className . '.class.php');
	}
}
